package demo5;

public class Animal {
    public String name;
    public int age;
    public void eat() {
        System.out.println("某某动物正在吃饭");
    }
    public void sleep() {
        System.out.println("某某动物正在睡觉");
    }
//    public Animal(int age, String name) {
//        this.age = age;
//        this.name = name;
//    }
}
